#ifndef _GUITIME_
#define  _GUITIME_

/*******sntp********/
#include <time.h>
#include <sys/time.h>
#include "esp_attr.h"
#include "esp_sleep.h"
#include "esp_sntp.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_err.h"
#include "esp_log.h"
#include "esp_system.h"
#include "gui.h"
#include "st7789.h"
typedef struct {
	uint8_t who;
	uint16_t number;
	uint16_t x;
	uint16_t y;
} CLOCK_WP;

void initialize_sntp(void);
void time_init();
void get_time(struct tm *timeinfo);
void change_Num(CLOCK_WP hms);
void clock_first();
void show_clock();
void show_week();
void color_p(TFT_t * dev,uint16_t color);
void show_time_mini();
#endif